import Vue from "vue";
import VueRouter from "vue-router";
import BookList from "@/views/BookList.vue"
import AddBook from "@/views/AddBook.vue"

Vue.use(VueRouter)

const router = new VueRouter({
    routes:[
        {path:"/",redirect:"/init"},
        {path:"/init",component:BookList},
        {path:"/add-book",component:AddBook}    
    ]
})
export default router